<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='zhyyglhtxt'/></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
    <style>
        html {
            background: #fff;
        }
    </style>
</head>

<body>

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this"><fmt:message key='hyjbxx'/></li>
        <li><fmt:message key='ddjl'/></li>
    </ul>
    <div class="layui-tab-content" style="height: 100%;">

        <div class="layui-tab-item layui-show">


            <div class="layui-container">
                <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
                    <form:form commandName="member" class="layui-form" id="serviceForm">
                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                            <legend><fmt:message key='hyxx'/></legend>
                        </fieldset>

                        <div class="layui-row layui-col-space30">

                            <div class="layui-col-md2">


                                <div class="layui-form-item">
                                    <div class="layui-form-mid layui-word-aux">
                                        <div id="feijinImage-enterpriseInfo-legalPersonIdCardPhoto">
                                            <c:if test="${not empty member.avatar}">
                                                <img src="${store_domain}/avatar/${member.avatar}" style="width:120px;height:120px;margin-top:10px;">
                                            </c:if>
                                            <c:if test="${empty member.avatar}">
                                                <img src="${web_domain}/resources/images/defaultAvatar.jpeg" style="width:120px;height:120px;margin-top:10px;">
                                            <div class="layui-container"><div class="layui-form-mid layui-word-aux">(<fmt:message key='hyid'/>：${member.id})</div></div>
                                            </c:if>
                                        </div>
                                    </div>
                                </div>


                            </div>


                            <div class="layui-col-md5">

                                <div class="layui-form-item">
                                    <label class="layui-form-label"><fmt:message key='sjhm'/></label>
                                    <div class="layui-form-mid layui-word-aux">
                                            ${member.username}
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                        <label class="layui-form-label"> </label>
                                    <div class="layui-form-mid layui-word-aux">
                                        <fmt:formatDate value="${member.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
                                    </div>
                                </div>


                            </div>
                            <div class="layui-col-md5">

                                <div class="layui-form-item">
                                    <label class="layui-form-label"><fmt:message key='yhnc'/></label>
                                    <div class="layui-form-mid layui-word-aux">
                                            ${member.nickname}

                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label"><fmt:message key='zhzt'/></label>
                                    <div class="layui-form-mid layui-word-aux">
                                        <c:choose>
                                            <c:when test="${member.accountNonLocked}"><b style="color:green;"><fmt:message key='qy'/></b></c:when>
                                            <c:otherwise><b style="color:red;"><fmt:message key='jy'/></b></c:otherwise>
                                        </c:choose>
                                    </div>
                                </div>

                            </div>
                        </div>


                    </form:form>
                </div>
            </div>
        </div>



        <div class="layui-tab-item" style="height: 800px;">
            <iframe src="${web_domain}/mall/member/${member.id}/orders" style="width:100%;height: 100%;" frameborder="0" ></iframe>
        </div>


    </div>
</div>

</body>
</fmt:bundle>
</html>